package com.title3;

import java.io.*;

/**
 * @Author milian
 * @Date 2021/8/4 0004 19:56
 */
public class title3 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("D:\\aa.txt"), "GBK");
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("D:\\aa.txt"), "UTF-8");
        int len;
        while ((len=isr.read())!=-1){
            osw.write(len);
        }
        isr.close();
        osw.close();
    }
}
